package com.nq.dao.fund;

import java.util.List;

import com.nq.fund.entity.StFundKline;
import com.nq.fund.vo.StFundKlineVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: st_fund_kline
 * @Author: jeecg-boot
 * @Date:   2024-06-03
 * @Version: V1.0
 */
@Mapper
@Repository
public interface StFundKlineMapper extends BaseMapper<StFundKline> {


    StFundKline queryCurrentKlineData(@Param("fundId") Integer fundId);

    StFundKline queryLastKlineData(@Param("fundCode") String code);

    StFundKline queryCurrentKlineDataByCurrentDay(@Param("fundId") Integer fundId, @Param("formatDateTime") String formatDateTime);

    StFundKline getYesterdayKline(@Param("fundCode") String fundCode, @Param("timestamp") long timestamp);

    void deleteByFundCode(@Param("fundCode") String fundCode);
}
